/*
 * TimerActivity.h
 *
 *  Created on: 2022年5月8日
 *      Author: vicent-PC
 */

#ifndef MAIN_ROSE_APP_TIMERACTIVITY_H_
#define MAIN_ROSE_APP_TIMERACTIVITY_H_

#include "./websocket/WebSocketService.h"
#include "Activity.h"
#include "Canvas.h"
#include "WebService.h"
#include "power_track/Ina226App.h"

#include "SystemServer.h"

class TimerActivity : public Activity {
 public:
    static constexpr const char* APPNAME = "TimerActivity";
    static TimerActivity* getInstance() {
        if (m_pInstance == nullptr) m_pInstance = new TimerActivity();
        return m_pInstance;
    }

    TimerActivity();
    virtual ~TimerActivity();
    void onCreate();
    virtual void onEvent();
    virtual void onDraw();
 public:
    float mCanvasfps = 2;
    static TimerActivity* m_pInstance;
 private:
    View* mView = nullptr;
    Canvas* mCanvas = nullptr;
};

#endif /* MAIN_ROSE_APP_TIMERACTIVITY_H_ */
